﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Crosscutting.Authorize
{
    public interface IRoleService
    {
        Domain.Entity.Role Add(Domain.Entity.Role role, Domain.Entity.User opeUser);

        bool Delete(Domain.Entity.Role role, Domain.Entity.User opeUser);

        bool DeleteTrue(Domain.Entity.Role role, Domain.Entity.User opeUser);

        bool Delete(IList<int> idList, Domain.Entity.User opeUser);

        bool DeleteTrue(IList<int> idList, Domain.Entity.User opeUser);

        bool Modify(Domain.Entity.Role role, Domain.Entity.User opeUser);

        IQueryable<Domain.Entity.Role> GetList();

        Domain.Entity.Role GetEmptyRole();

        Domain.Entity.Role GetDefaultRole();

        Domain.Entity.Role Get(int id);
    }
}
